import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: Rajeev
 * Date: Dec 27, 2009
 * Time: 2:53:08 PM
 * To change this template use File | Settings | File Templates.
 */
public class Node {
    ArrayList<Node> children = new ArrayList<Node>();
    ArrayList<Attribute> attributes = new ArrayList<Attribute>();

    String meta = null;
    String content = null;
    String type = null;
    boolean inline;

    public void addChild(Node child) {
        this.children.add(child);
    }

    public String toString() {
        String child = "";
        for (Node c: children) {
            child = child + "\n" + c.toString();
        }
        return "Node:" + type + "\n" + child;
    }
}
